﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Detail.Master" AutoEventWireup="true"
    CodeBehind="PlateEdit.aspx.cs" Inherits="MTC.Web.Forms.PlatesEdit" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxTabControl" TagPrefix="dxtc" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxClasses" TagPrefix="dxw" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Src="../Controls/NavMenu.ascx" TagName="NavMenu" TagPrefix="uc1" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CPHeader" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPNav" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPMain" runat="server">
    <asp:HiddenField ID="hfPlateId" runat="server" />
    <dxtc:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" CssFilePath="~/App_Themes/Soft Orange/{0}/styles.css"
        CssPostfix="Soft_Orange" ImageFolder="~/App_Themes/Soft Orange/{0}/" 
        onactivetabchanged="ASPxPageControl1_ActiveTabChanged" Width="600px" 
        LoadingPanelText="" TabSpacing="2px">
        <TabPages>
            <dxtc:TabPage Text="General">
                <ContentCollection>
                    <dxw:ContentControl runat="server">
                        <dxp:ASPxPanel ID="ASPxPanel1" runat="server" Width="600px">
                            <PanelCollection>
                                <dxp:PanelContent runat="server">
                                    <table>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblPlateNumber" runat="server" Text="Plate Number"></dxe:ASPxLabel>
                                            </td>
                                            <td>
                                                <dxe:ASPxTextBox ID="txtPlateNumber" runat="server"></dxe:ASPxTextBox>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <dxe:ASPxLabel ID="lblPlateType" runat="server" Text="Plate Type"></dxe:ASPxLabel>
                                            </td>
                                            <td>
                                                <asp:DropDownList ID="cboPlateType" runat="server" DataTextField="PlateDescription"
                                                    DataValueField="PlateTypeId">
                                                </asp:DropDownList>
                                            </td>
                                        </tr>
                                    </table>
                                </dxp:PanelContent>
                            </PanelCollection>
                        </dxp:ASPxPanel>
                    </dxw:ContentControl>
                </ContentCollection>
            </dxtc:TabPage>
            <dxtc:TabPage Text="Owner Details">
                <ContentCollection>
                    <dxw:ContentControl runat="server">
                        <table>
                            <tr>
                                <td>
                                    <dxe:ASPxLabel ID="Label1" runat="server" Text="Owner"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <asp:DropDownList ID="cboOwner" runat="server" DataTextField="OwnerName" DataValueField="OwnerId">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <dxe:ASPxLabel ID="Label2" runat="server" Text="Weekly Rate"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <dxe:ASPxTextBox ID="txtWeekRate" runat="server"></dxe:ASPxTextBox>
                                </td>
                                <td>
                                    <dxe:ASPxLabel ID="Label7" runat="server" Text="Monthly Rate"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <dxe:ASPxTextBox ID="txtMonthRate" runat="server"></dxe:ASPxTextBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <dxe:ASPxLabel ID="Label3" runat="server" Text="Start Date"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <dxe:ASPxDateEdit ID="txtStartDate" runat="server">
                                    </dxe:ASPxDateEdit>
                                </td>
                                <td>
                                    <dxe:ASPxLabel ID="Label4" runat="server" Text="End Date"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <dxe:ASPxDateEdit ID="txtEndDate" runat="server">
                                    </dxe:ASPxDateEdit>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <dxe:ASPxLabel ID="Label5" runat="server" Text="Bank"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <dxe:ASPxTextBox ID="txtBank" runat="server"></dxe:ASPxTextBox>
                                </td>                                                            
                                <td>
                                    <dxe:ASPxLabel ID="Label6" runat="server" Text="Account"></dxe:ASPxLabel>
                                </td>
                                <td>
                                    <dxe:ASPxTextBox ID="txtAccount" runat="server"></dxe:ASPxTextBox>
                                </td>                                                            
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                            <tr>
                                <td>
                                    <dxe:ASPxLabel ID="Label8" runat="server" Text="Comment"></dxe:ASPxLabel>
                                </td>
                                <td colspan="3">
                                    <dxe:ASPxTextBox ID="txtComment" runat="server" MaxLength="500" Rows="3" TextMode = "MultiLine" Width="100%"></dxe:ASPxTextBox>
                                </td>                                                            
                            </tr>
                            <tr>
                                <td>&nbsp;</td>
                            </tr>
                        </table>
                    </dxw:ContentControl>
                </ContentCollection>
            </dxtc:TabPage>
        </TabPages>
        <ContentStyle>
            <Border BorderColor="LightGray" BorderStyle="Solid" BorderWidth="3px" />
        </ContentStyle>
        <Paddings Padding="4px" />
    </dxtc:ASPxPageControl>
    <table width="600px">
        <tr>
            <td>
                &nbsp;<dxe:ASPxLabel ID="lblMessage" runat="server" ForeColor="red"></dxe:ASPxLabel>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Button ID="btnUpdate" runat="server" Text="Update" OnClick="btnUpdate_Click" />&nbsp;<asp:Button
                    ID="btnCancel" runat="server" Text="Cancel" OnClick="btnCancel_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="CPSideBar" runat="server">
    <uc1:NavMenu ID="NavMenu1" runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="CPFooter" runat="server">
</asp:Content>
